﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared.Master" AutoEventWireup="true"
    CodeBehind="archivelist.aspx.cs" Inherits="Lawyer.Web.archivelist" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
    <div class="main-content">
        <header>
                            <ul class="action-buttons clearfix">
                               <li><a href="archiveadd.aspx" class="large button " >New Case</a></li>
                            </ul>
                            <h2>
                                <asp:Label ID="lbCurrentArchive" runat="server" Text="Archives"></asp:Label>
                            </h2>
                    </header>
        <section class="container_6 clearfix">
                            <div class="grid_6">

                                
                                <asp:GridView ID="gridView" CssClass="display" runat="server"  
                                    AllowPaging="True" Width="100%" CellPadding="3"  OnPageIndexChanging ="gridView_PageIndexChanging"
                    BorderWidth="1px" DataKeyNames="ArchiveID" OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="False" PageSize="100"  RowStyle-HorizontalAlign="Center" 
                                    OnRowCreated="gridView_OnRowCreated" onrowcommand="gridView_RowCommand">

<RowStyle HorizontalAlign="Center"></RowStyle>

                    <Columns>
                    
                            
		<asp:BoundField DataField="ArchiveID" HeaderText="ID" ReadOnly="false" Visible="false" /> 
		<asp:HyperLinkField HeaderText="Case Name" DataNavigateUrlFields="ArchiveID" DataNavigateUrlFormatString="archivedetail.aspx?id={0}" ItemStyle-CssClass="zoombox"
                                DataTextField="Title"/>
        <%--<asp:BoundField DataField="Title" HeaderText="Case Name"   /> --%>
        <asp:HyperLinkField HeaderText="Custom Name" DataNavigateUrlFields="CustomID" DataNavigateUrlFormatString="customdetail.aspx?id={0}" ItemStyle-CssClass="zoombox"
                                DataTextField="CustomName"/>
		<asp:BoundField DataField="AgencyName" HeaderText="Agency Name"   /> 
		<asp:BoundField DataField="AgencyRate" HeaderText="Agency Rate" DataFormatString="{0:G}%"   /> 
		<asp:HyperLinkField HeaderText="Total Fees(￡)" DataNavigateUrlFields="ArchiveID" DataNavigateUrlFormatString="activity.aspx?id={0}" 
                                DataTextField="MoneyCount"/>
		<asp:TemplateField HeaderText="Option">
		    <ItemTemplate>
		    <%--<div class="tdarchive">
		      <a href="file.aspx?id=<%#Eval("ArchiveID") %>"><img src="/images/navicons/68.png" alt="Relative Resources"/></a>
		      <a href="customlist.aspx?id=<%#Eval("ArchiveID") %>"><img src="/images/navicons/123.png" alt="Relative Custom" /></a>
		      <a href="activity.aspx?id=<%#Eval("ArchiveID") %>"><img src="/images/navicons/161.png" alt="Relative Activities" /></a>
		    </div>--%>
		        <a href="file.aspx?id=<%#Eval("ArchiveID") %>" target="_blank">Resources</a>
		      <a href="activity.aspx?id=<%#Eval("ArchiveID") %>" target="_blank">Activities</a>
		    </ItemTemplate>
		</asp:TemplateField>
        <asp:HyperLinkField HeaderText="Update"
                            DataNavigateUrlFields="ArchiveID" DataNavigateUrlFormatString="archiveupdate.aspx?id={0}"
                                Text="Update"  >
                </asp:HyperLinkField>
<%--        <asp:HyperLinkField HeaderText="Delete" DataNavigateUrlFields="ArchiveID" DataNavigateUrlFormatString="#"
                                                            Text="Delete"  /> --%>                                                                                                      
        <asp:TemplateField HeaderText="Status">
            <ItemTemplate>
                <asp:Label ID="lbStatus" runat="server" Text='<%#Eval("ShowStatus") %>'></asp:Label><br />
                <asp:LinkButton ID="lbnConfirm" runat="server" CommandArgument='<%#Eval("ArchiveID") %>' ></asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>
                        </Columns>
                        
                </asp:GridView>
                            </div>
                            </section>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SideBar" runat="server">
    <nav>
    <a class="chevron" href="#">&raquo;</a>
    <ul>
        <li><a href="archiveadd.aspx">New Case</a></li>
        <li class="<%=statusall %>"><a href="archivelist.aspx">My  Case</a></li>
        <li class="<%=status0 %>"><a href="archivelist.aspx?status=0">Pending Case</a></li>
        <li class="<%=status1 %>"><a href="archivelist.aspx?status=1">Assigned to me</a></li>
        <li class="<%=status2 %>"><a href="archivelist.aspx?status=2">Ongoing  Case</a></li>
        <li class="<%=status3 %>"><a href="archivelist.aspx?status=3">Closing Case</a></li>
        <li class="<%=status4 %>"><a href="archivelist.aspx?status=4">Closed Case</a></li>

    </ul>
</nav>
</asp:Content>
